package com.hayden.fileMonitor.pojo;

public class TcpInfo {
    private String protocol;
    private String localAddress;
    private String foreignAddress;
    private String state;
    private int pid;

    public TcpInfo(String protocol, String localAddress, String foreignAddress, String state, int pid) {
        this.protocol = protocol;
        this.localAddress = localAddress;
        this.foreignAddress = foreignAddress;
        this.state = state;
        this.pid = pid;
    }

    @Override
    public String toString() {
        return "TcpInfo{" +
                "protocol='" + protocol + '\'' +
                ", localAddress='" + localAddress + '\'' +
                ", foreignAddress='" + foreignAddress + '\'' +
                ", state='" + state + '\'' +
                ", pid=" + pid +
                '}';
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getLocalAddress() {
        return localAddress;
    }

    public void setLocalAddress(String localAddress) {
        this.localAddress = localAddress;
    }

    public String getForeignAddress() {
        return foreignAddress;
    }

    public void setForeignAddress(String foreignAddress) {
        this.foreignAddress = foreignAddress;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }
}
